package com.exampleyyy.demoyyy.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.view.RedirectView;

@Controller
@RequestMapping("") //接受的是get http://8.130.117.8:8081:8081
public class maincontroller {
    @GetMapping("")
    public RedirectView return_index(){
        return new RedirectView("/front/index.html");
    }
    @GetMapping("/admin")
    public RedirectView return_admin(){
        return new RedirectView("/backend/page/login/login.html");
    }
}
